<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes();?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" <?php language_attributes();?>>
        <![endif]-->
        <!--[if !(IE 7) | !(IE 8)  ]><!-->
        <html <?php language_attributes();?>>
            <!--<![endif]-->
            <head>
                <meta charset="<?php bloginfo('charset');?>" />
                <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
                <meta name="renderer" content="webkit">
                <title>
                <?php if ( is_home() ) {
                    bloginfo('name'); echo " - "; bloginfo('description');
                } elseif ( is_category() ) {
                    single_cat_title(); echo " - "; bloginfo('name');
                } elseif (is_single() || is_page() ) {
                    single_post_title();
                } elseif (is_search() ) {
                    echo "搜索结果"; echo " - "; bloginfo('name');
                } elseif (is_404() ) {
                    echo '页面未找到!';
                } else {
                    wp_title('|', true, 'right');
                } ?>
                </title>
                <meta name="viewport" content="width=device-width, initial-scale=1.0" />
                <link rel="profile" href="http://gmpg.org/xfn/11" />
                <link rel="pingback" href="<?php bloginfo('pingback_url');?>" />
                <!-- Icons font support for IE6-7  -->
                <!--[if lt IE 8]>
                <script src="<?php echo get_stylesheet_directory_uri();?>inc/css/fonts/lte-ie7.js"></script>
                <![endif]-->
<?php wp_head();?>
                <!--Icons size hack for IE8 and less -->
                <!--[if lt IE 9]>
                <link href="<?php echo get_stylesheet_directory_uri();?>inc/css/fonts/ie8-hacks.css" rel="stylesheet" type="text/css"/>
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="<?php echo get_stylesheet_directory_uri();?>zui1.3/dist/lib/ieonly/html5shiv.js"></script>
                <script src="<?php echo get_stylesheet_directory_uri();?>zui1.3/dist/lib/ieonly/respond.js"></script>
                <script src="<?php echo get_stylesheet_directory_uri();?>zui1.3/dist/lib/ieonly/excanvas.js"></script>
                <![endif]-->

            </head>
            <body <?php body_class();?>>
                <header  role="banner">
                    <div >
                        <div class="container">
                            <!-- 
                            <div ><h1>
                                <a  title="<?php echo get_bloginfo('description');?>" href="<?php echo home_url();?>"><?php bloginfo('name');?></a>
                            </h1></div>
                            -->
                            <!-- begin test-->
<header id="header" class="clearfix">
    <div id="headTitle">
        <div class="wrapper">
            <div id="siteLogo">
                <a href="/"><img src="<?php echo get_stylesheet_directory_uri();?>/img/niit_logo.png" class="logo" title="南京工业职业技术学院图书馆"></a>
            </div>
            <div id="siteSlogan"><span><?php bloginfo( 'name' ); ?></span></div>
        </div>
    </div>
      <div id="headNav">
        <div class="wrapper">
            <nav><a href="wp-login.php">登录</a>
                
            </nav>
        </div>
      </div>
  <div id="searchbar">
    <form action="<?php echo home_url() ;?>" method="get" role="search">
      <div class="input-group">
                <input type="text" name="s" id="s" value="" class="form-control" placeholder="">
                <div class="input-group-btn">
          <button class="btn btn-default" type="submit"><i class="icon icon-search"></i></button>
        </div>
      </div>
    </form>
  </div>
</header>


  <!-- end test-->
<nav id="navbar" class="navbar navbar-default" role="navigation">
       <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/"><i class="icon-home"></i></a>
    </div>                     
<?php

wp_nav_menu(array(
	'menu' => 'primary_menu',
	'theme_location' => 'primary_menu',
	'depth' => 2,
	'container' => 'div',
	'container_class' => 'collapse navbar-collapse',
	'container_id' => 'navbarCollapse',
    
	'menu_class' => 'nav navbar-nav  ',
	//'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
	'walker' => new wp_bootstrap_navwalker()
    )
);

?>
 </nav>                           
                            </div> <!-- end .container -->
                           
                            </div> <!-- end .navbar -->
<script>
// navbar collapse

        </script>
                        </header>
                        <div class="container">
